<!-- Main Header Start -->
<header class="main-header">

    <!-- Logo -->
    <a href="/admin" class="logo">
        <!-- mini logo for sidebar mini 50x50 pixels -->
        <span class="logo-mini">后台</span>
        <!-- logo for regular state and mobile devices -->
        <span class="logo-lg">后台管理系统</span>
    </a>

    <!-- Header Navbar -->
    <nav class="navbar navbar-static-top" role="navigation">
        <!-- Sidebar toggle button-->
        <a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
            <span class="sr-only">导航</span>
        </a>
        <!-- Navbar Right Menu -->
        <div class="navbar-custom-menu">
            <ul class="nav navbar-nav">

                <!-- User Account Menu -->
                <li class="dropdown user user-menu">
                    <!-- Menu Toggle Button -->
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        <!-- The user image in the navbar-->
                        <img src="/adminlte/dist/img/user2-160x160.jpg" class="user-image" alt="User Image">
                        <!-- hidden-xs hides the username on small devices so only the image appears. -->
                        <?php if ($this->session->has('manager')) { ?>
                            <span class="hidden-xs"><?php echo $this->session->get('manager')['login_name']; ?></span>
                        <? } else { ?>
                            <span class="hidden-xs">系统管理员</span>
                        <?php } ?>
                    </a>
                    <ul class="dropdown-menu">
                        <!-- The user image in the menu -->
                        <!-- <li class="user-header">
                          <img src="/admin-lte/dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
                          <p>Alexander Pierce</p>
                        </li> -->
                        <!-- Menu Footer-->
                        <li class="user-footer">
                            <div class="center-block">
                                <a href="/manager/logout" class="btn btn-default btn-flat">退出</a>
                            </div>
                        </li>
                    </ul>
                </li>
                <!-- Control Sidebar Toggle Button -->

            </ul>
        </div>
    </nav>
</header>
<!-- Main Header End -->
